cmake_minimum_required(VERSION 3.0)

project(lr_vo1)

add_definitions("-DENABLE_SSE")
set(CMAKE_CXX_FLAGS "-std=c++11 -O2 ${SSE_FLAGS} -msse4")
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})

find_package(OpenCV 3 REQUIRED)
find_package(G2O REQUIRED)
find_package(Sophus REQUIRED)

include_directories(
        ${EIGEN3_INCLUDE_DIR}
        ${OpenCV_INCLUDE_DIRS}
        ${G2O_INCLUDE_DIRS}
        ${Sophus_INCLUDE_DIRS}
)


add_executable(lr_vo1 main.cpp)

target_link_libraries(lr_vo1
    ${OpenCV_LIBS}
    ${G2O_CORE_LIBRARY}
    ${G2O_STUFF_LIBRARY}
)

install(TARGETS lr_vo1 RUNTIME DESTINATION bin)
